Depends on what you mean by black.
The term 'black people' can refer to a black skin color from African ancestry (as in not middle-eastern, asian or white). African in all these description means sub-Saharan because current day Africa also encompasses some of the Middle East which in itself encompasses some of Asia and Europe.
Historically African people can refer to any people that have a primary African ancestry (eg. in the UK, in the US)
African-Americans have historical ties to the establishment of America during slavery with African ancestry often described as black
To that effect, by the definitions of the words:
Obama was perhaps black (at least 50%), but he wasn't historically black nor African-American. His father didn't have ties to America, being from Kenya. He was not the first African-American president, we never had one of those.
Elon Musk isn't black nor African American but he is historically African.
Kamala Harris isn't black nor African American nor historically African. Her ancestry on her father's side is Carribean (which is a mix of primarily Hispanic origin, some Asian and a sprinkle of African) and Asian (mother from India) making her the first Asian or perhaps she can claim partially Hispanic VP, either way, we never had one of those. Neither of her parents were Americans or had any historical ties to America.